<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../../vue.js"></script>
    <link rel="stylesheet" href="./a.css" />
</head>

<body>
    <div id="app">
        <h2>订单</h2>
        <ol>
            <li v-for="item in list">
                {{item.name}}--
                <span v-if="item.age===0">未付款</span>
                <span v-else-if="item.age===1">代发货</span>
                <span v-else-if="item.age===2">已发货</span>
                <span v-else="item.age===3">已签收</span>
            </li>
        </ol>
    </div>
    <script>
        new Vue({
            el: "#app",
            data: {
                list: [{
                    name: 111,
                    age: 0,
                }, {
                    name: 222,
                    age: 1,
                }, {
                    name: 333,
                    age: 2,
                }, {
                    name: 444,
                    age: 3,
                }, ],
            },
        });
    </script>
</body>

</html>